package com.lwz.repair.sendredpackage;

import java.util.ArrayList;

public class MainRedPacket {

    public static void main(String[] args) {

        Menage menage =new Menage("群主",105);

        Member one =new Member("成员A",0);
        Member two =new Member("成员b",0);
        Member three =new Member("成员c",0);


        menage.Show();
        one.Show();
        two.Show();
        three.Show();

        System.out.println("=======================");

        ArrayList<Integer> redlist = menage.Send(50,3);

        one.recivered(redlist);
        two.recivered(redlist);
        three.recivered(redlist);
        int a =522;
        int b =89;
        int c =a<b?a:b;
        System.out.println(c);

        System.out.println("=======================");
        menage.Show();
        one.Show();
        two.Show();
        three.Show();
        User.shouw();
        //静态变量和静态方法都属于类，不属于对象
        //静态方法只能访问静态变量
//        创建类的时候先创建静态的内容

    }

}
